Skip to content

metrics: Use the correct term for types #2019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

codebien
Copy link
Contributor

@codebien codebien commented Aug 6, 2025

What?

In principle k6 has metric types and users can create custom metrics with them. But the two definitions are not strictly the same.

Checklist

  • I have used a meaningful title for the PR.
  • I have described the changes I've made in the "What?" section above.
  • I have performed a self-review of my changes.
  • I have run the npm start command locally and verified that the changes look good.
  • I have made my changes in the docs/sources/k6/next folder of the documentation.
  • I have reflected my changes in the docs/sources/k6/v{most_recent_release} folder of the documentation.
  • I have reflected my changes in the relevant folders of the two previous k6 versions of the documentation (if still applicable to previous versions).
  • I have made my changes in the docs/sources/k6/next folder of the documentation.

Related PR(s)/Issue(s)

@codebien codebien requested review from heitortsergent and a team as code owners August 6, 2025 10:32
@codebien codebien requested review from mstoykov and joanlopez and removed request for a team August 6, 2025 10:32
@CLAassistant
Copy link

CLAassistant commented Aug 6, 2025

CLA assistant check
All committers have signed the CLA.

@codebien
Copy link
Contributor Author

I should update the all the previous versions + next. I will do it asap tomorrow.

@codebien codebien changed the title Fix a typo on Rate page metrics: Use the correct term for types Aug 12, 2025
Copy link
Contributor Author

@codebien codebien Aug 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder: Unexpected

@@ -7,7 +7,7 @@ weight: 72

# Rate

_Rate_ is an object for representing a custom metric keeping track of the percentage of added values that are non-zero. It is one of the four [custom metrics](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-metrics).
_Rate_ is an object for representing a custom metric keeping track of the percentage of added values that are non-zero. It is one of the four [metric types](https://grafana.com/docs/k5/<K6_VERSION>/javascript-api/k6-metrics).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we downgrading k6 to k5 😱

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants